package com.spade.consumer;

import com.spade.fallback.FallBackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author quanlong.chan
 * @Title: ConsumerService
 * @Description:
 * @date 2019/8/1 11:37
 */
@FeignClient(value = "demo-provider", fallback = FallBackService.class)
public interface ConsumerService {

    @RequestMapping("/hello/{name}")
    String sayHello(@PathVariable(value = "name") String name);
}
